<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="huoyun" uri="/huoyun"%>
<div class="l-basicInfor">
	<div class="l-basicInfor-content">
		<span> <a target="_blank" href="/userprofile/avator"> <!--<img src="http://s4.zbjimg.com/r/p/task/120.gif">-->
				<img alt="设置形象标识"
					src="${pageContext.request.contextPath}<s:property value="loginUser.userImg"/>"
					style="width: 40px; width: 50px" /> </a> </a> </span>
		<span>
			<ul>
				<li class="l-basicInfor-content-name">
					<span><s:property value="user.username" />
					</span>
				<s:if test="user.checkRealname==0">
						<span title="未进行实名认证"> <a
							href="http://u.zhubajie.com/real/index"> <img
									src="${pageContext.request.contextPath}/theme/images/userAdmin/erz0.png">
						</a> </span>
					</s:if>
					<s:else>
						<span title="已通过实名认证"> <a
						href="http://u.zhubajie.com/real/index"> <img src="${pageContext.request.contextPath}/theme/images/userAdmin/erz0.png">
						</a> </span>
					</s:else>
					<s:if test="user.checkEmail==0">
						<span title="未进行邮箱认证"> <a
							href="http://u.zhubajie.com/cert/email"> <img
									src="${pageContext.request.contextPath}/theme/images/userAdmin/email0.png">
						</a> </span>
					</s:if>
					<s:else>
						<span title="已经通过邮箱认证"> <a
							href="http://u.zhubajie.com/cert/email"> <img
									src="${pageContext.request.contextPath}/theme/images/userAdmin/email0.png">
						</a> </span>
					</s:else>
					<s:if test="checkBankAccount==0">
						<span title="未进行银行卡认证"> <a
							href="http://u.zhubajie.com/bank/index"> <img
									src="${pageContext.request.contextPath}/theme/images/userAdmin/bank0.png">
						</a> </span>
					</s:if>
					<s:else>
						<span title="已经通过银行卡认证"> <a
						href="http://u.zhubajie.com/bank/index"> <img
								src="${pageContext.request.contextPath}/theme/images/userAdmin/bank0.png">
						</a> </span>
					</s:else>
					<s:if test="checkMobilePhone==0">
						<span title="未进行手机认证"> <a
							href="http://u.zhubajie.com/cert/mobile"> <img
									src="${pageContext.request.contextPath}/theme/images/userAdmin/trz1.png">
						</a> </span>
					</s:if>
					<s:else>
						<span title="已经通过手机认证"> <a
							href="http://u.zhubajie.com/cert/mobile"> <img
									src="${pageContext.request.contextPath}/theme/images/userAdmin/trz1.png">
						</a> </span>
					</s:else>
				</li>
				<li>
					<span>&nbsp;积分：12</span>
				</li>
				<li>
					<span>资料完善度：</span>
					<span class="l-basicInfor-content-schedule"> <s:property
							value="userInfoCompleteRate" />% <a
						href="">立即完善</a>
						<a target="_blank" href="<s:url action="index.action" namespace="/userAdmin"></s:url>">我的主页</a>
				</li>
			</ul> </span>
	</div>
	<div class="l-basicInfor-taskInfor">
		<div class="l-basicInfor-taskInfor-bl1">
			<span> <a target="_blank" href="#"> <img alt="设置公司商标"
						src="${pageContext.request.contextPath}/theme/images/userAdmin/company_head.gif">
			</a> </span>
			<span>
				<ul>
					<s:if test="company!=null">
						<li style="font-size: 14px;">
							&nbsp;&nbsp;
							<strong>公司名：<s:property value="company.name"/>
							</strong>
						</li>
						<li>
							&nbsp;&nbsp;信息完整度：
							<s:property value="companyCompleteRate" />
							%
						</li>
						<li>
							&nbsp;&nbsp;
							<a href="<s:url action="preCompany" namespace="/company"></s:url>">完善公司信息</a>
						</li>
					</s:if>
					<s:else>
						<li>
							<a href="<s:url action="preCompany" namespace="/company"></s:url>">添加公司信息</a>
						</li>
					</s:else>
				</ul> </span>
		</div>
	</div>
</div>
<div class="l-basicInfor-content-shadow"></div>
<div class="realR_left l-myzbj-main">
	<div class="mybox">
		<div class="mytit">
			交易看板
		</div>
		<div class="con h_lc l-myzbj-main-board clearfix"
			style="width: 558px;">
			<ul>
				<li>
					<a href="<s:url action="queryAll" namespace="/order"></s:url>">待支付订单(
					<s:property value="unPayOrderCount" />
					)</a>
				</li>
				<li>
					<a href="<s:url action="queryAll" namespace="/order"></s:url>">待确认订单(
					<s:property value="unConfirmCount" />
					)</a>
				</li>
				<li>
					<a href="<s:url action="queryAll" namespace="/order"></s:url>">待评论订单(
					<s:property value="unCommentCount" />
					)</a>
				</li>
			</ul>
		</div>
	</div>

	<div class="realR_left l-myzbj-main" style="top-padding: 10px">
		<div class="mybox">
			<div class="mytit">
				您正在交易的货物
			</div>
			<div class="con h_lc l-myzbj-main-board clearfix"
				style="width: 558px;">
				<table class="listTable">
					<tr>
						<th width="14%">
							货物名称
						</th>
						<th width="12%">
							货物数量
						</th>
						<th width="25%">
							起始地
						</th>

						<th width="17%">
							应标截至日期
						</th>
						<th width="14%">
							货物现状
						</th>
						<th width="18%">
							操作
						</th>
					</tr>
					<s:if test="cargoPage">
						<s:iterator var="cargoObj" value="cargoPage.objectList">
							<tr>
								<td>
									<s:property value="#cargoObj.title" />
								</td>
								<td>
									<s:property value="#cargoObj.amount" />
									<huoyun:customSelect type="view" mode="measureType"
										value="${cargoObj.measure }" />
								</td>
								<td>
									<strong>始：</strong>
									<huoyun:regionSelect type="view"
										provinceValue="${cargoObj.startProvince }"
										cityValue="${cargoObj.startCity}" />
									<br />
									<strong> 终：</strong>
									<huoyun:regionSelect type="view"
										provinceValue="${cargoObj.destinationProvince}"
										cityValue="${cargoObj.destinationCity}"/>
								</td>
								<td>
									<huoyun:dateFormat date="${cargoObj.limitTime }"
										dateFormat="yyyy-MM-dd HH:mm" />
								</td>

								<s:if test="#cargoObj.status==0">
									<td>
										等待审核
									</td>
									<td>
										<a
											href="<s:url action='preEditCargo.action' namespace='/cargo'><s:param name='cargoId'><s:property value='#cargoObj.id'/></s:param></s:url>">修改</a>|
										<a
											href="<s:url action="viewCargo.action" namespace="/cargo"><s:param name='cargoId'><s:property value='#cargoObj.id'/></s:param></s:url>">查看</a>
									</td>
								</s:if>
								<s:elseif test="#cargoObj.status==1">
									<td>
										审核通过
									</td>
									<td>
										<a
											href="<s:url action="viewCargo.action" namespace="/cargo"><s:param name='cargoId'><s:property value='#cargoObj.id'/></s:param></s:url>">查看</a>|
										<a
											href="<s:url action="queryCars.action" namespace="/car"><s:param name='goodsId'><s:property value='#cargoObj.id'/></s:param></s:url>">找车</a>
									</td>
								</s:elseif>
								<s:elseif test="#cargoObj.status==2">
									<td>
										审核未通过
									</td>
									<td>
										<a
											href="<s:url action='preEditCargo.action' namespace='/cargo'><s:param name='cargoId'><s:property value='#cargoObj.id'/></s:param></s:url>">修改</a>|
										<a
											href="<s:url action="viewCargo.action" namespace="/cargo"><s:param name='cargoId'><s:property value='#cargoObj.id'/></s:param></s:url>">查看</a>
									</td>
								</s:elseif>
								<s:elseif test="#cargoObj.status==3">
									<td>
										已生成订单
									</td>
									<td>
										<a
											href="<s:url action="viewCargo.action" namespace="/cargo"><s:param name='cargoId'><s:property value='#cargoObj.id'/></s:param></s:url>">查看</a>
								</s:elseif>
								<s:else>
									<td>
										交易完成
									</td>
									<td>
										<a
											href="<s:url action="viewCargo.action" namespace="/cargo"><s:param name='cargoId'><s:property value='#cargoObj.id'/></s:param></s:url>">查看</a>
									</td>
								</s:else>
							</tr>
							<s:if test="#cargoObj.status==1">
								<tr>
									<td colspan="7" style="text-align: right;">
										<s:if test="#cargoObj.inviteCount==0">
											您还没有邀请任何车辆报价,<a
												href="<s:url action="queryCars.action" namespace="/car"><s:param name='goodsId'><s:property value='#cargoObj.id'/></s:param></s:url>">去邀请>></a>
										</s:if>
										<s:else>
											您已经邀请了<s:property value="#cargoObj.inviteCount" />辆车报价,<a
												href="<s:url action="queryCars.action" namespace="/car"><s:param name='goodsId'><s:property value='#cargoObj.id'/></s:param></s:url>">继续邀请>></a>
										</s:else>
										<s:if test="#cargoObj.bidCount==0">
											还没有车辆报价。
										</s:if>
										<s:else>
											已经有<a
												href="<s:url action="commendCar.action" namespace="/car"><s:param name='goodsId'><s:property value='#cargoObj.id'/></s:param></s:url>"><s:property
													value="#cargoObj.bidCount" />辆车</a>报价
										</s:else>
									</td>
								</tr>
							</s:if>
						</s:iterator>
						<s:if test="cargoPage.totalPage > 1">
							<tr>
								<s:url var="queryCargoUrl" action="cargoList.action"
									namespace="/cargo"></s:url>
								<td colspan="7">
									<huoyun:page pageNo="${cargoPage.pageNo}"
										url="${queryCargoUrl}" totalPage="${cargoPage.totalPage}"
										totalRecord="${cargoPage.totalRecord}"></huoyun:page>
								</td>
							</tr>
						</s:if>
					</s:if>
				</table>
			</div>
		</div>
	</div>

</div>
<div class="realR_left l-myzbj-sidebar"
	style="float: right; width: 210px;">
	<div class="mybox mb10"></div>
	<div class="mybox mb10">
		<div class="l-myzbj-sidebar-title">
			雇主说
		</div>
		<div class="con">
			<ul class="b_entry clearfix fc6">
				<li style="height: 90px; overflow: hidden; margin-bottom: 8px;">
					<a title="" target="_blank"
						href="http://www.easybuy.com.cn/topic/easybuy_zhubajie.html ">
						<img class="" border="0"
							src="http://p4.zbjimg.com/task/2012-12/10/pub/50c59e1e547bf.jpg">
					</a>
				</li>
				<li>
					1111111111
				</li>
				<li>
					1111111111
				</li>
			</ul>
		</div>
	</div>
	<div class="mybox mb10"></div>
</div>
</div>